/*
 * @Date: 2025-06-11 10:37:47
 * @LastEditors: Csir 2215995096@qq.com
 * @LastEditTime: 2025-07-17 12:49:02
 * @FilePath: \infomng-ui\src\api\workorder\productionscheduling.js
 */
import request from "@/router/axios";

export function getProductionScheduling(id, date) {
  // /workorder/workorderschedulemain/getProductionScheduling/${id}/${date}
  return request({
    url: `/admin-api/o3-workorder/workorderschedulemain/getProductionScheduling/${id}/${date}`,
    method: "get",
  });
}

export function saveProductionScheduling(data) {
  return request({
    url: `/admin-api/o3-workorder/workorderschedulemain/saveProductionScheduling`,
    method: "post",
    data,
  });
}

export function getLineInfoList(params) {
  return request({
    url: `/admin-api/o3-workorder/workorderscheduledetails/getLineInfoList`,
    method: "get",
    params,
  });
}

export function getInfoDateList(params) {
  return request({
    url: `/admin-api/o3-workorder/workorderscheduledetails/getInfoDateList`,
    method: "get",
    params,
  });
}
